gtk4.git
4 years agoshortcutcontroller: Add a way to update accels
Matthias Clasen [Thu, 17 Jun 2021 12:31:13 +0000 (08:31 -0400)]
shortcutcontroller: Add a way to update accels

This will be used to make accel changes propagate.

4 years agoaction muxer: Propagate registrations further up
Matthias Clasen [Thu, 17 Jun 2021 12:37:42 +0000 (08:37 -0400)]
action muxer: Propagate registrations further up

We were pretty aggressive about not registering
observers further than necessary, stopping at the
first muxer that provides an action.

But even though action changes further up in the tree
won't be relevant in that case, we need to listen to
accel changes, since they may come from higher up
in the tree (e.g. when using
gtk_application_set_accels_for_action with an action
that is defined on a widget.

So, register all the way to the top, and stop propagating
action changes when we hit a muxer that provides the action.

4 years agomenutrackeritem: Be more careful with accel changes
Matthias Clasen [Thu, 17 Jun 2021 12:42:03 +0000 (08:42 -0400)]
menutrackeritem: Be more careful with accel changes

In some cases (such as when getting a new parent), the
action muxer doesn't know exactly which detailed actions
have changed accels, so we call primary_accel_changed with
just an action name.

Make the menu tracker item handle that case by matching
either against the detailed name or the the action name.

4 years agoaction muxer: Propagate accel changes
Matthias Clasen [Thu, 17 Jun 2021 12:35:59 +0000 (08:35 -0400)]
action muxer: Propagate accel changes

When we set a new parent on an action muxer,
accels may change, so call primary_accel_changed
for involved actions.

4 years agoactionobserver: Clarify primary_accel_changed docs
Matthias Clasen [Wed, 16 Jun 2021 14:34:37 +0000 (10:34 -0400)]
actionobserver: Clarify primary_accel_changed docs

Either action_name or action_and_target may be NULL
here, and observer implementations should be careful
when checking those values.

4 years agoprint-editor: Make accels work
Matthias Clasen [Wed, 16 Jun 2021 14:16:41 +0000 (10:16 -0400)]
print-editor: Make accels work

Sadly, they don't show up anymore with this.

4 years agobloatpad: Add icons as resources
Matthias Clasen [Wed, 16 Jun 2021 13:35:00 +0000 (09:35 -0400)]
bloatpad: Add icons as resources

This can serve as a useful example for how to add
themed icons as resources.

4 years agobloatpad: Give the toolbar a facelift
Matthias Clasen [Wed, 16 Jun 2021 13:26:15 +0000 (09:26 -0400)]
bloatpad: Give the toolbar a facelift

Make it look more like a toolbar.

4 years agobloatpad: Improve accel dialog
Matthias Clasen [Wed, 16 Jun 2021 13:09:24 +0000 (09:09 -0400)]
bloatpad: Improve accel dialog

Make this dialog a bit less of an eyesore.

4 years agoexamples: Use existing icons
Matthias Clasen [Wed, 16 Jun 2021 12:45:04 +0000 (08:45 -0400)]
examples: Use existing icons

The sunny icon doesn't exist anymore.

4 years agoexamples: Drop a redundant frame
Matthias Clasen [Wed, 16 Jun 2021 12:40:01 +0000 (08:40 -0400)]
examples: Drop a redundant frame

The frame in the drawing example adds nothing
and looks wrong.

4 years agoMerge branch 'cherry-pick-4ba89f25' into 'master'
Matthias Clasen [Tue, 15 Jun 2021 20:29:28 +0000 (20:29 +0000)]
Merge branch 'cherry-pick-4ba89f25' into 'master'

cellarea: Don't shrink area too much

See merge request GNOME/gtk!3672

4 years agoMerge branch 'label-underline-markup' into 'master'
Matthias Clasen [Tue, 15 Jun 2021 19:43:40 +0000 (19:43 +0000)]
Merge branch 'label-underline-markup' into 'master'

label: Fix mnemonic handling

Closes #4041

See merge request GNOME/gtk!3670

4 years agocellarea: Don't shrink area too much
Benjamin Otte [Tue, 15 Jun 2021 17:34:37 +0000 (19:34 +0200)]
cellarea: Don't shrink area too much

Do not compute rectangles with negative width/height. This avoids
assertion failures further down when those rectangles were actually
checked.

https://bugzilla.redhat.com/show_bug.cgi?id=1962215

(cherry picked from commit 4ba89f25b8a88616afc1915bdb4fb87d13efae6f)

4 years agoAdd a mnemonic testcase
Matthias Clasen [Tue, 15 Jun 2021 17:32:31 +0000 (13:32 -0400)]
Add a mnemonic testcase

Add a testcase that tests the label mnemonic handling
that was fixed in the previous commit.

4 years agolabel: Fix mnemonic handling
Matthias Clasen [Tue, 15 Jun 2021 17:06:10 +0000 (13:06 -0400)]
label: Fix mnemonic handling

We were not handling the case right in which we
want to use underlines, but not use markup. Since
we are now using pango_parse_markup for this case,
we need to escape the xml markup.

Fixes: #4041
4 years agoRevert "progressbar: Avoid redundant storage"
Matthias Clasen [Tue, 15 Jun 2021 11:37:57 +0000 (07:37 -0400)]
Revert "progressbar: Avoid redundant storage"

This reverts commit 95747b1a4082709d8e5320dc2171a8c53cedce19.

This was wrong - it turns out that while GtkProgressBar
allows you to change its orientation, its box layout is
always vertical.

Fixes: #4037
4 years agoUpdate Turkish translation
Emin Tufan Çetin [Tue, 15 Jun 2021 09:02:34 +0000 (09:02 +0000)]
Update Turkish translation

4 years agoMerge branch 'macos-input-method' into 'master'
Matthias Clasen [Mon, 14 Jun 2021 19:20:06 +0000 (19:20 +0000)]
Merge branch 'macos-input-method' into 'master'

fix: make input method work again in gtk4

Closes #3968

See merge request GNOME/gtk!3668

4 years agoMerge branch 'media-stream-name-collision' into 'master'
Matthias Clasen [Mon, 14 Jun 2021 18:44:10 +0000 (18:44 +0000)]
Merge branch 'media-stream-name-collision' into 'master'

mediastream: Rename an api to avoid name collisions

Closes #4023

See merge request GNOME/gtk!3667

4 years agofix: make the new nsview as the first responder.
Zhi [Mon, 14 Jun 2021 16:06:35 +0000 (00:06 +0800)]
fix: make the new nsview as the first responder.

Make the new view as the first responder(focused) so the new view can
accept events from input method.

Fixes #3968.

4 years agomediastream: Rename an api to avoid name collisions
Matthias Clasen [Mon, 14 Jun 2021 11:25:06 +0000 (07:25 -0400)]
mediastream: Rename an api to avoid name collisions

Some bindings can't handle the coexistence of
GtkMediaStream:prepared and gtk_media_stream_prepared.
Help them out by renaming the function to
gtk_media_stream_set_prepared, and rename
gtk_media_stream_unprepared as well, to match.

The existing entry points still exist, deprecated.

Update all internal uses.

Fixes: #4023
4 years agoMerge branch 'columnview-double-activation' into 'master'
Matthias Clasen [Mon, 14 Jun 2021 10:39:43 +0000 (10:39 +0000)]
Merge branch 'columnview-double-activation' into 'master'

listitemwidget: Claim gesture when activating

Closes #4015

See merge request GNOME/gtk!3663

4 years agolistitemwidget: Claim gesture when activating
Matthias Clasen [Sun, 13 Jun 2021 12:03:39 +0000 (08:03 -0400)]
listitemwidget: Claim gesture when activating

Claim the gesture when we are activating a list item.

Otherwise we end up with double activations in
columnviews: first GtkColumnViewCell handles
the event, and then GtkListItemWidget handles
it again.

Fixes: #4015
4 years agolistitemwidget: Match activation conditions
Matthias Clasen [Sun, 13 Jun 2021 12:02:06 +0000 (08:02 -0400)]
listitemwidget: Match activation conditions

Make the conditions used for activation in the single-
and double-click case properly match, so that it is
obvious that we won't trigger both of them.

4 years agoMerge branch 'filename-annotations' into 'master'
Matthias Clasen [Sun, 13 Jun 2021 11:38:50 +0000 (11:38 +0000)]
Merge branch 'filename-annotations' into 'master'

Add type annotations for filename arguments

Closes #633

See merge request GNOME/gtk!3665

4 years agoMerge branch 'msvc-fix' into 'master'
Matthias Clasen [Sun, 13 Jun 2021 11:38:22 +0000 (11:38 +0000)]
Merge branch 'msvc-fix' into 'master'

Fix illegal instruction crash on x64 CPUs without POPCNT instruction when compiled with MSVC

See merge request GNOME/gtk!3664

4 years agoUpdate gtkpopcountprivate.h: undefined macro outside msvc
Sebastian Cherek [Sat, 12 Jun 2021 17:35:13 +0000 (17:35 +0000)]
Update gtkpopcountprivate.h: undefined macro outside msvc

4 years agoDropped defined() for readability
scherek [Sat, 12 Jun 2021 17:10:11 +0000 (19:10 +0200)]
Dropped defined() for readability

4 years agoReplaced && with || for POPCNT checks to fix the logic.
scherek [Sat, 12 Jun 2021 15:32:19 +0000 (17:32 +0200)]
Replaced && with || for POPCNT checks to fix the logic.

4 years agoAdd type annotations for filename arguments
Matthias Clasen [Sat, 12 Jun 2021 15:12:06 +0000 (11:12 -0400)]
Add type annotations for filename arguments

Add missing "(type filename)" annotations for string
arguments that are filenames.

Fixes: #633
4 years agoFix illegal instruction crash on x64 CPUs without POPCNT instruction when compiled...
scherek [Sat, 12 Jun 2021 14:18:26 +0000 (16:18 +0200)]
Fix illegal instruction crash on x64 CPUs without POPCNT instruction when compiled with MSVC

4 years agoMerge branch 'listmodel-get-item' into 'master'
Matthias Clasen [Fri, 11 Jun 2021 19:56:06 +0000 (19:56 +0000)]
Merge branch 'listmodel-get-item' into 'master'

docs: Mention the GtkWidget.destroy vfunc

Closes #4024

See merge request GNOME/gtk!3662

4 years agoAdd tests for empty list models
Matthias Clasen [Fri, 11 Jun 2021 19:38:20 +0000 (15:38 -0400)]
Add tests for empty list models

Test that all our models return NULL for out-of-range
get_item calls, as expected.

4 years agoselectionfiltermodel: Fix an oversight
Matthias Clasen [Fri, 11 Jun 2021 19:37:16 +0000 (15:37 -0400)]
selectionfiltermodel: Fix an oversight

When the position is out of range, get_item needs
to return NULL.

Fixes: #4024
4 years agodocs: Mention the GtkWidget.destroy vfunc
Matthias Clasen [Fri, 11 Jun 2021 14:11:53 +0000 (10:11 -0400)]
docs: Mention the GtkWidget.destroy vfunc

Mention GtkWidget.destroy in the migration guide.

4 years agodocs: Fix a typo in the migration guide
Matthias Clasen [Fri, 11 Jun 2021 11:52:30 +0000 (07:52 -0400)]
docs: Fix a typo in the migration guide

4 years agoMerge branch 'wip/chergert/fix-delayed-focus' into 'master'
Matthias Clasen [Thu, 10 Jun 2021 21:31:47 +0000 (21:31 +0000)]
Merge branch 'wip/chergert/fix-delayed-focus' into 'master'

window: clear move_focus when focus is already set

See merge request GNOME/gtk!3658

4 years agowindow: clear move_focus when focus is already set
Christian Hergert [Thu, 10 Jun 2021 21:01:41 +0000 (14:01 -0700)]
window: clear move_focus when focus is already set

This can get set in other places, so we need to ensure it is cleared so
that an after-paint handler does not move the focus to a new widget.

4 years agoMerge branch 'actionable-fixes' into 'master'
Matthias Clasen [Thu, 10 Jun 2021 13:30:25 +0000 (13:30 +0000)]
Merge branch 'actionable-fixes' into 'master'

tests: Fix check vs toggle button confusion

Closes #4022

See merge request GNOME/gtk!3656

4 years agocheckbutton: Fix actionable state tracking
Matthias Clasen [Thu, 10 Jun 2021 12:37:13 +0000 (08:37 -0400)]
checkbutton: Fix actionable state tracking

If we have a GAction as model, we just have to
call gtk_action_helper_activate() and let
the action helper handle the state updates,

Fixes: #4022
4 years agotogglebutton: Fix actionable state tracking
Matthias Clasen [Thu, 10 Jun 2021 12:36:08 +0000 (08:36 -0400)]
togglebutton: Fix actionable state tracking

If we have a GAction as model, we just have to let
the action helper handle the state updates. GtkButton
already calls gtk_action_helper_activate() for us.

4 years agobutton: Add a private getter for the action helper
Matthias Clasen [Thu, 10 Jun 2021 12:35:24 +0000 (08:35 -0400)]
button: Add a private getter for the action helper

GtkToggleButton needs to know if it needs to actively
maintain its state, or defer to the action helper.

4 years agotestgaction: Add more widgetry
Matthias Clasen [Thu, 10 Jun 2021 12:10:25 +0000 (08:10 -0400)]
testgaction: Add more widgetry

Add some toggle and check buttons to test that they
work as expected as GtkActionables.

4 years agoFix the GAction test
Matthias Clasen [Thu, 10 Jun 2021 11:55:45 +0000 (07:55 -0400)]
Fix the GAction test

We weren't setting the state of the stateful actions.

4 years agotests: Fix check vs toggle button confusion
Matthias Clasen [Thu, 10 Jun 2021 11:49:08 +0000 (07:49 -0400)]
tests: Fix check vs toggle button confusion

Check buttons aren't toggle buttons anymore.

4 years ago4.3.1
Matthias Clasen [Wed, 9 Jun 2021 22:23:47 +0000 (18:23 -0400)]
4.3.1

4 years agoMerge branch 'ebassi/docs-for-master' into 'master'
Matthias Clasen [Wed, 9 Jun 2021 17:30:02 +0000 (17:30 +0000)]
Merge branch 'ebassi/docs-for-master' into 'master'

docs: Mention Window::close-request in the migration guide

See merge request GNOME/gtk!3655

4 years agodocs: Mention the ::damage-event signal in the migration guide
Emmanuele Bassi [Wed, 9 Jun 2021 17:11:10 +0000 (18:11 +0100)]
docs: Mention the ::damage-event signal in the migration guide

There is no replacement for damage event tracking.

4 years agodocs: Mention GdkSurface:mapped
Emmanuele Bassi [Wed, 9 Jun 2021 17:08:31 +0000 (18:08 +0100)]
docs: Mention GdkSurface:mapped

It replaces the ::map-event and ::unmap-event signals on GtkWidget.

4 years agodocs: Mention Window::close-request in the migration guide
Emmanuele Bassi [Wed, 9 Jun 2021 17:03:12 +0000 (18:03 +0100)]
docs: Mention Window::close-request in the migration guide

The Widget::delete-event signal was moved to Window::close-request.

4 years agoMerge branch 'ci-install-build' into 'master'
Matthias Clasen [Wed, 9 Jun 2021 12:59:46 +0000 (12:59 +0000)]
Merge branch 'ci-install-build' into 'master'

Make a standalone hello world

See merge request GNOME/gtk!3652

4 years agoci: Update the image
Matthias Clasen [Wed, 9 Jun 2021 11:10:13 +0000 (07:10 -0400)]
ci: Update the image

v32 of the image includes wayland-protocols 1.21, and
other updates from Fedora 34.

While we are at it, drop gtk-doc from the image, and drop
the separate DOCS_IMAGE - no longer used.

4 years agoci: Collect hello build logs
Matthias Clasen [Wed, 9 Jun 2021 11:35:25 +0000 (07:35 -0400)]
ci: Collect hello build logs

4 years agoci: Test building against installed GTK
Matthias Clasen [Tue, 8 Jun 2021 21:39:34 +0000 (17:39 -0400)]
ci: Test building against installed GTK

This is meant to ensure that we e.g. install the
right header files, and so on.

4 years agoMake a standalone hello world
Matthias Clasen [Tue, 8 Jun 2021 21:26:36 +0000 (17:26 -0400)]
Make a standalone hello world

We want to test building against the installed GTK
in ci, so lets add a standalone project.

4 years agoMerge branch 'row-activated-annotation' into 'master'
Matthias Clasen [Tue, 8 Jun 2021 17:17:45 +0000 (17:17 +0000)]
Merge branch 'row-activated-annotation' into 'master'

treeview: Add a few missing annotations

Closes #3828

See merge request GNOME/gtk!3647

4 years agoMerge branch 'wip/carlosg/spin-button-swipe-gesture' into 'master'
Matthias Clasen [Tue, 8 Jun 2021 14:54:26 +0000 (14:54 +0000)]
Merge branch 'wip/carlosg/spin-button-swipe-gesture' into 'master'

spinbutton: Connect swipe gesture to the text entry

Closes #4008

See merge request GNOME/gtk!3649

4 years agofix: replace deprecated metods.
Zhi [Sun, 6 Jun 2021 15:39:43 +0000 (23:39 +0800)]
fix: replace deprecated metods.

Use NSInputContext to replace NSInputManager, which has been deprecated
since 10.6.

Sync from 0e30a96 in gtk3.

4 years agospinbutton: Mind the step in the swipe gesture
Carlos Garnacho [Tue, 8 Jun 2021 13:09:37 +0000 (15:09 +0200)]
spinbutton: Mind the step in the swipe gesture

The swipe gesture forces values in the spin button that are
"impossible" according to the adjustment. This can break things
in creative ways.

Ensure the steps provided are always multiples of the adjustment
step value, and keep the remainder for further interaction.

4 years agospinbutton: Connect swipe gesture to the text entry
Carlos Garnacho [Tue, 8 Jun 2021 13:06:29 +0000 (15:06 +0200)]
spinbutton: Connect swipe gesture to the text entry

In the GTK3 days, the spin button was an entry, with buttons on
top, and the swipe gesture affected the input on the entry bits.
Now the spin button is a container, so this gesture in the capture
phase applies to all contained children (incl. buttons).

Attach this gesture to the entry itself, so the buttons are left
outside this business. The gesture is still in the capture phase
in order to prevent text selection/edition/etc to happen.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4008
4 years agoApply 1 suggestion(s) to 1 file(s)
Matthias Clasen [Tue, 8 Jun 2021 12:59:57 +0000 (12:59 +0000)]
Apply 1 suggestion(s) to 1 file(s)

4 years agoApply 1 suggestion(s) to 1 file(s)
Matthias Clasen [Tue, 8 Jun 2021 12:59:38 +0000 (12:59 +0000)]
Apply 1 suggestion(s) to 1 file(s)

4 years agoMerge branch 'password-entry-buffer' into 'master'
Matthias Clasen [Tue, 8 Jun 2021 12:09:01 +0000 (12:09 +0000)]
Merge branch 'password-entry-buffer' into 'master'

Install gtkpasswordentrybuffer.h

See merge request GNOME/gtk!3646

4 years agotreeview: Documentation tweaks
Matthias Clasen [Tue, 8 Jun 2021 11:57:55 +0000 (07:57 -0400)]
treeview: Documentation tweaks

4 years agoInstall gtkpasswordentrybuffer.h
Matthias Clasen [Tue, 8 Jun 2021 11:49:06 +0000 (07:49 -0400)]
Install gtkpasswordentrybuffer.h

4 years agoMerge branch 'password-entry-buffer' into 'master'
Matthias Clasen [Tue, 8 Jun 2021 11:25:12 +0000 (11:25 +0000)]
Merge branch 'password-entry-buffer' into 'master'

Make GtkPasswordEntryBuffer public

See merge request GNOME/gtk!3645

4 years agoMake GtkPasswordEntryBuffer public
Matthias Clasen [Tue, 8 Jun 2021 11:25:11 +0000 (11:25 +0000)]
Make GtkPasswordEntryBuffer public

4 years agoMerge branch 'ebassi/issue-3892' into 'master'
Matthias Clasen [Mon, 7 Jun 2021 18:10:12 +0000 (18:10 +0000)]
Merge branch 'ebassi/issue-3892' into 'master'

a11y: Update the level property for tree expanders

Closes #3892

See merge request GNOME/gtk!3470

4 years agoMerge branch 'glib-main' into 'master'
Emmanuele Bassi [Mon, 7 Jun 2021 14:53:04 +0000 (14:53 +0000)]
Merge branch 'glib-main' into 'master'

subprojects: Use GLib main branch

See merge request GNOME/gtk!3642

4 years agosubprojects: Use GLib main branch
Philip Withnall [Mon, 7 Jun 2021 13:56:49 +0000 (14:56 +0100)]
subprojects: Use GLib main branch

GLib upstream has renamed its `master` branch to `main`.

See https://gitlab.gnome.org/GNOME/glib/-/issues/2348.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
4 years agotreeview: Add a few missing annotations
Matthias Clasen [Sun, 6 Jun 2021 12:24:52 +0000 (08:24 -0400)]
treeview: Add a few missing annotations

gtk_tree_view_row_activated and the ::row-activated signal
can (and do) receive NULL for the column occasionally.

This is an introspection api change.

Fixes: #3828
4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 5 Jun 2021 22:13:21 +0000 (22:13 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Docs: Tweaks

Closes #3638

See merge request GNOME/gtk!3639

4 years agogtk-builder-tool: Replace can-focus with focusable
Matthias Clasen [Sat, 5 Jun 2021 21:56:35 +0000 (17:56 -0400)]
gtk-builder-tool: Replace can-focus with focusable

The focusable property has the meaning that can-focus had
in GTK 3.

Update tests, and mention this in the migration guide.

Fixes: #3638
4 years agoDocs: Tweaks
Matthias Clasen [Sat, 5 Jun 2021 21:36:02 +0000 (17:36 -0400)]
Docs: Tweaks

Remove some more redundant "or NULL" blurbs.

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 5 Jun 2021 21:36:06 +0000 (21:36 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

popovermenu: doc tweaks

See merge request GNOME/gtk!3638

4 years agopopovermenu: doc tweaks
Matthias Clasen [Sat, 5 Jun 2021 21:19:39 +0000 (17:19 -0400)]
popovermenu: doc tweaks

4 years agoMerge branch 'submenu-action-fixes' into 'master'
Matthias Clasen [Sat, 5 Jun 2021 13:36:10 +0000 (13:36 +0000)]
Merge branch 'submenu-action-fixes' into 'master'

Submenu action fixes

Closes #3721

See merge request GNOME/gtk!3272

4 years agoMerge branch 'msvc-aarch64' into 'master'
Matthias Clasen [Sat, 5 Jun 2021 13:05:15 +0000 (13:05 +0000)]
Merge branch 'msvc-aarch64' into 'master'

gtkpopcountprivate.h: Fix build on ARM/aarch64 Visual Studio

See merge request GNOME/gtk!3637

4 years agomenusectionbox: Fix submenu-action for nested menus
Matthias Clasen [Mon, 8 Mar 2021 05:43:43 +0000 (00:43 -0500)]
menusectionbox: Fix submenu-action for nested menus

We were not updating the state of submenu-actions
for nested submenus.

Fixes: #3721
4 years agopopovermenubar: Make submenu-actions work
Matthias Clasen [Mon, 8 Mar 2021 05:46:30 +0000 (00:46 -0500)]
popovermenubar: Make submenu-actions work

We were not updating submenu-action state
for items in menubars.

4 years agomenutrackeritem: Make submenu-actions work again
Matthias Clasen [Mon, 8 Mar 2021 05:45:35 +0000 (00:45 -0500)]
menutrackeritem: Make submenu-actions work again

This broke when GtkActionMuxer stopped being a
GActionGroup.

4 years agobloatpad: Bring back the menubar
Matthias Clasen [Mon, 8 Mar 2021 05:43:03 +0000 (00:43 -0500)]
bloatpad: Bring back the menubar

This was lost at some point.

4 years agoMerge branch 'powimod_icon' into 'master'
Matthias Clasen [Sat, 5 Jun 2021 12:47:08 +0000 (12:47 +0000)]
Merge branch 'powimod_icon' into 'master'

Load icon from executable on Windows

Closes #3713

See merge request GNOME/gtk!3326

4 years agogtkpopcountprivate.h: Fix build on ARM/aarch64 Visual Studio
Chun-wei Fan [Sat, 5 Jun 2021 07:37:52 +0000 (15:37 +0800)]
gtkpopcountprivate.h: Fix build on ARM/aarch64 Visual Studio

__popcnt() is not supported for ARM nor ARM64 Visual Studio builds, so we must
use the fallback implementation as intrinsics are not supported for this
purpose on ARM/ARM64 Visual Studio builds.

4 years agoMerge branch 'ci-file-filters' into 'master'
Matthias Clasen [Sat, 5 Jun 2021 01:47:24 +0000 (01:47 +0000)]
Merge branch 'ci-file-filters' into 'master'

GtkFileFilter: Allow case-insensitive patterns

Closes #3705

See merge request GNOME/gtk!359

4 years agoMerge branch 'imcontext-ignore-more-keysyms' into 'master'
Matthias Clasen [Sat, 5 Jun 2021 01:19:39 +0000 (01:19 +0000)]
Merge branch 'imcontext-ignore-more-keysyms' into 'master'

imcontext: Ignore more keysyms

See merge request GNOME/gtk!3634

4 years agoAdd GtkFileFilter tests
Matthias Clasen [Fri, 4 Jun 2021 22:34:01 +0000 (18:34 -0400)]
Add GtkFileFilter tests

4 years agoGtkFileFilter: Add suffix matches
Matthias Clasen [Fri, 4 Jun 2021 03:55:48 +0000 (23:55 -0400)]
GtkFileFilter: Add suffix matches

This is less flexible than a glob pattern, but it is
explicitly case-insensitive, to match the behavior
on Windows.

Fixes: #3705
4 years agoAdd a helper to make case-insensitive globs
Matthias Clasen [Fri, 4 Jun 2021 03:50:09 +0000 (23:50 -0400)]
Add a helper to make case-insensitive globs

This will be used in GtkFileFilter in the future.

Tests included.

4 years agoimcontext: Ignore more keysyms
Matthias Clasen [Fri, 4 Jun 2021 23:01:57 +0000 (19:01 -0400)]
imcontext: Ignore more keysyms

It finally dawned on my that #3673 is just another
case of unexpected keysyms getting sent our way via
fringe XKB features.

Ignore them all!

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 4 Jun 2021 20:24:23 +0000 (20:24 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

docs: Mention <packing> in migration guide

Closes #3950 and #2271

See merge request GNOME/gtk!3630

4 years agoMerge branch 'master' into 'matthiasc/for-master'
Matthias Clasen [Fri, 4 Jun 2021 20:24:09 +0000 (20:24 +0000)]
Merge branch 'master' into 'matthiasc/for-master'

# Conflicts:
#   docs/reference/gtk/migrating-3to4.md

4 years agoicontheme: Add detail to the 'not found' message
Matthias Clasen [Fri, 4 Jun 2021 13:47:26 +0000 (09:47 -0400)]
icontheme: Add detail to the 'not found' message

Name the icon theme we're using.

Fixes: #2271
4 years agoClean up some comments
Matthias Clasen [Fri, 4 Jun 2021 12:58:12 +0000 (08:58 -0400)]
Clean up some comments

These XXX comments aren't useful enough to keep.

4 years agoAdd a doc comment for gsk_rounded_rect_is_circular
Matthias Clasen [Fri, 4 Jun 2021 12:44:37 +0000 (08:44 -0400)]
Add a doc comment for gsk_rounded_rect_is_circular

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 4 Jun 2021 13:21:37 +0000 (13:21 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

docs: Mention <packing> in migration guide

Closes #3950

See merge request GNOME/gtk!3629

4 years agowayland: Add a comment
Matthias Clasen [Fri, 4 Jun 2021 12:29:23 +0000 (08:29 -0400)]
wayland: Add a comment

I just had to debug this to rediscover how it works, so
add a comment for next time.

4 years agowayland: Add a comment
Matthias Clasen [Fri, 4 Jun 2021 12:29:23 +0000 (08:29 -0400)]
wayland: Add a comment

I just had to debug this to rediscover how it works, so
add a comment for next time.

4 years agodocs: Escape some xml tags
Matthias Clasen [Fri, 4 Jun 2021 12:06:18 +0000 (08:06 -0400)]
docs: Escape some xml tags

When mentioning xml tags in markdown, we must write
them as `<foo>`, or they will come out mangled.